package edu.ucsd.db.bassarisk.algebra.logical.function;

import edu.ucsd.db.bassarisk.columndef.DataColumnDefinition;
import edu.ucsd.db.bassarisk.query.binding.Bindings.Binding;

public class ColumnLength implements Function {
  private final DataColumnDefinition column;
  private final Binding binding;

  public ColumnLength(DataColumnDefinition column, Binding binding) {
    this.column = column;
    this.binding = binding;
  }

  public DataColumnDefinition getColumn() {
    return this.column;
  }
  
  public Binding getBinding() {
    return this.binding;
  }
  
  public String toString() {
    String format = "ColumnLength(%s)";
    return String.format(format, this.column);
  }
}
